package org.dromara.wx.eventHandle;

import com.github.sd4324530.fastweixin.api.config.ApiConfig;
import com.github.sd4324530.fastweixin.handle.EventHandle;
import com.github.sd4324530.fastweixin.message.BaseMsg;
import com.github.sd4324530.fastweixin.message.TextMsg;
import com.github.sd4324530.fastweixin.message.req.MenuEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created by fly on 2016/6/1.
 */

@Component
public class MenuClickEventHandler implements EventHandle<MenuEvent> {

    private static Logger logger = LoggerFactory.getLogger(UserEventHandler.class);


    @Override
    public BaseMsg handle(final MenuEvent event, final ApiConfig config) {
        return null;
    }

    @Override
    public boolean beforeHandle(MenuEvent event, ApiConfig config) {
        if (event.getEventKey().startsWith("_sys_"))
            return true;
        return false;
    }
}
